package com.itgungnir.designpattern.builder;

import com.itgungnir.designpattern.builder.builders.Builder;

public class Director {
	private String name;
	private Builder builder;

	public Director(String name, Builder builder) {
		this.name = name;
		this.builder = builder;
	}

	public void constructComponent() {
		System.out.println("Preparing Components For " + name);
		Product product = builder.buildProduct();
		product.display();
	}
}